package com.ibeetl.admin.core.entity;

import com.ibeetl.admin.core.util.ValidateConfig;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.LogicDelete;
import org.beetl.sql.core.annotatoin.SeqID;

import javax.validation.constraints.NotNull;
import java.util.Date;


/* 
* 
* gen by Spring Boot2 Admin 2018-11-20
*/
public class Message extends BaseEntity{

    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @SeqID(name = ORACLE_CORE_SEQ_NAME)
    @AutoID	

    private Integer id ;
	
    //企业id

    private Integer companyId ;
	
    //个人id

    private Integer userId ;

    //申报人
    private String name;
	
    //内容

    private String content ;
	
    //业务类型

    private Integer type ;
	
    //个人接收状态：0接收，-1没接收

    private Integer status ;

    //企业接受状态：0接收，-1没接收

    private Integer companyStatus;
	
    //生成消息时间

    private Date createDate ;
	
    //接收时间

    private Date readDate ;
	
    //备注

    private String note ;
	
    //删除标记
	/*逻辑删除标志*/
	@InsertIgnore
	@LogicDelete(value = 1)

    private Integer delFlag ;
	
    public Message()
    {
    }

    public Integer getId(){
	    return  id;
    }
    public void setId(Integer id){
        this.id = id;
    }

    /**企业id
    *@return 
    */
    public Integer getCompanyId(){
	    return  companyId;
    }
    /**企业id
    *@param  companyId
    */
    public void setCompanyId(Integer companyId){
        this.companyId = companyId;
    }

    /**个人id
    *@return 
    */
    public Integer getUserId(){
	    return  userId;
    }
    /**个人id
    *@param  userId
    */
    public void setUserId(Integer userId){
        this.userId = userId;
    }

    /**内容
    *@return 
    */
    public String getContent(){
	    return  content;
    }
    /**内容
    *@param  content
    */
    public void setContent(String content){
        this.content = content;
    }

    /**业务类型
    *@return 
    */
    public Integer getType(){
	    return  type;
    }
    /**业务类型
    *@param  type
    */
    public void setType(Integer type){
        this.type = type;
    }

    /**接收状态：0接收，-1没接收
    *@return 
    */
    public Integer getStatus(){
	    return  status;
    }
    /**接收状态：0接收，-1没接收
    *@param  status
    */
    public void setStatus(Integer status){
        this.status = status;
    }

    /**企业接收状态：0接收，-1没接收
    *@return
    */
    public Integer getCompanyStatus() {
        return companyStatus;
    }
    /**企业接收状态：0接收，-1没接收
    *@param  companyStatus
    */
    public void setCompanyStatus(Integer companyStatus) {
        this.companyStatus = companyStatus;
    }

    /**生成消息时间
    *@return 
    */
    public Date getCreateDate(){
	    return  createDate;
    }
    /**生成消息时间
    *@param  createDate
    */
    public void setCreateDate(Date createDate){
        this.createDate = createDate;
    }

    /**接收时间
    *@return 
    */
    public Date getReadDate(){
	    return  readDate;
    }
    /**接收时间
    *@param  readDate
    */
    public void setReadDate(Date readDate){
        this.readDate = readDate;
    }

    /**备注
    *@return 
    */
    public String getNote(){
	    return  note;
    }
    /**备注
    *@param  note
    */
    public void setNote(String note){
        this.note = note;
    }

    /**删除标记
    *@return 
    */
    public Integer getDelFlag(){
	    return  delFlag;
    }
    /**删除标记
    *@param  delFlag
    */
    public void setDelFlag(Integer delFlag){
        this.delFlag = delFlag;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
